﻿@using SAIM.Models:

@if (Request.IsAuthenticated)
{
    var UserIdentity = new SAIMIdentity(User.Identity);
    <ul class="nav navbar-nav navbar-right" style="margin-right: 15px;">
        <li>
            @Html.ActionLink(UserIdentity.GetUserName(), "Index", "Manage", routeValues: null, htmlAttributes: new { title = "Gestionar" })
        </li>
        <li>
            <a id="notificacion-icon" class="btn btn-toolbar" role="button" data-toggle="modal" href="#notificationModal"><span class="glyphicon glyphicon-bell" aria-hidden="true"></span></a>
        </li>
        <li>@Html.ActionLink("Cerrar sesión", "SignOut" , "Account" )</li>
    </ul>
}
else
{
    <ul class="nav navbar-nav navbar-right">
        <li>@Html.ActionLink("Iniciar sesión", "SignIn", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
